package com.qf.gitadmin.employee.service.impl;

import com.qf.entity.Employee;
import com.qf.gitadmin.employee.mapper.EmployeeMapper;
import com.qf.gitadmin.employee.service.EmployeeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * ---厚德载物---
 *
 * @Author lijiaqi
 * @Date 2024/10/8
 * @Desc -- 键盘敲烂 月薪过万 --
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Resource
    private EmployeeMapper employeeMapper;


    @Override
    public Employee selectById(int id) {
        Employee employee = employeeMapper.selectById(id);
        return employee;

    }

    @Override
    public void insert(Employee employee) {
        employeeMapper.insert(employee);
    }
}
